import { ref,reactive} from 'vue'

import type {FormRules } from "element-plus";


//添加修改用户信息
export interface PostSaveOrUpdateParam {
    postName:string,
    postCode:string,
    postSort:number
}


//添加修改对象
export const postSaveOrUpdateParam = reactive<PostSaveOrUpdateParam>({
    postName: '',
    postCode: '',
    postSort: 0
});




export function PostFromInfo(fromObj:any){
    postSaveOrUpdateParam.postName=fromObj!=null?fromObj.postName:"";
    postSaveOrUpdateParam.postCode=fromObj!=null?fromObj.postCode:"";
    postSaveOrUpdateParam.postSort=fromObj!=null?fromObj.postSort: 0;
}
